package service;

import dao.RsDao;
import dao.impl.RsDaoImpl;
import entity.Rs;
import service.impl.RsServiceImpl;

import java.util.List;

public class RsService implements RsServiceImpl {
    RsDaoImpl rsDao = new RsDao();
    @Override
    public List<Rs> xianshi() {
        return rsDao.xianshi();
    }

    @Override
    public int add(String code, String name, String sort, String status,String time) {
        return rsDao.add(code,name,sort,status,time);
    }

    @Override
    public int delete(String id) {
        return rsDao.delete(id);
    }

    @Override
    public Rs addone(String id) {
        return rsDao.addone(id);
    }

    @Override
    public int update(Rs rs, String id) {
        return rsDao.update(rs,id);
    }
}
